package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡套餐管理对象 tb_package
 * 
 * @author ruoyi
 * @date 2023-03-04
 */
public class TbPackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐id */
    private Long id;

    @JsonIgnore
    private Long cardId;

    public Long getCardId() {
        return cardId;
    }

    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String packageName;

    /** 售卖名称 */
    @Excel(name = "售卖名称")
    private String salesName;

    /** 套餐类型，0表示月套餐，1表示叠加包，2长周期套餐 */
    @Excel(name = "套餐类型，0表示月套餐，1表示叠加包，2长周期套餐")
    private Integer packageType;

    /** 自定义销售价格 */
    @Excel(name = "自定义销售价格")
    private BigDecimal price;

    /** 上下架状态，0表示已下架，1表示已上架 */
    @Excel(name = "上下架状态，0表示已下架，1表示已上架")
    private Integer status;

    /** 套餐大小 */
    @Excel(name = "套餐大小")
    private String packageSize;

    /** 套餐分类，0表示自定义套餐，1表示标准套餐 */
    @Excel(name = "套餐分类，0表示自定义套餐，1表示标准套餐")
    private Integer packageClassification;

    /** 删除标识，0标识未删除，1表示已删除 */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setSalesName(String salesName) 
    {
        this.salesName = salesName;
    }

    public String getSalesName() 
    {
        return salesName;
    }
    public void setPackageType(Integer packageType) 
    {
        this.packageType = packageType;
    }

    public Integer getPackageType() 
    {
        return packageType;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setPackageSize(String packageSize) 
    {
        this.packageSize = packageSize;
    }

    public String getPackageSize() 
    {
        return packageSize;
    }
    public void setPackageClassification(Integer packageClassification) 
    {
        this.packageClassification = packageClassification;
    }

    public Integer getPackageClassification() 
    {
        return packageClassification;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("packageName", getPackageName())
            .append("salesName", getSalesName())
            .append("packageType", getPackageType())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("packageSize", getPackageSize())
            .append("packageClassification", getPackageClassification())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
